package com.github.thinwonton.seckill.web.controller;

import java.util.Date;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.github.thinwonton.seckill.entity.web.AjaxResult;

/**
 * 公共模块控制器
 * 
 * @author hugo
 *
 */
@Controller
@RequestMapping
public class CommonController {
	@RequestMapping(value = "/time/now", method = RequestMethod.GET)
	@ResponseBody
	public AjaxResult<Date> now() {
		return new AjaxResult<>(true, new Date());
	}
}
